//
//  PPAbstractNavigationController.m
//  pickpic
//
//  Created by Jinxiao on 8/23/16.
//  Copyright © 2016 MicroDream. All rights reserved.
//

#import "PPAbstractNavigationController.h"

@implementation PPAbstractNavigationController

//- (void)viewDidLoad {
//    [super viewDidLoad];
//    
//    self.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName : [UIColor whiteColor], NSFontAttributeName : [UIFont systemFontOfSize:17]};
//    
//    self.navigationBar.barTintColor = [UIColor colorWithRGBHex:0x000000];
//    self.navigationBar.tintColor = [UIColor whiteColor];
//    
//    
//}


- (void)viewDidLoad {
    [super viewDidLoad];

    self.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName : [UIColor whiteColor], NSFontAttributeName : [UIFont systemFontOfSize:17]};

    self.navigationBar.barTintColor = [UIColor colorWithRGBHex:0x000000];
    self.navigationBar.tintColor = [UIColor whiteColor];
    

    
}

- (UIViewController *)childViewControllerForStatusBarStyle {
    return self.viewControllers.lastObject;
}

- (UIViewController *)childViewControllerForStatusBarHidden {
    return self.viewControllers.lastObject;
}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {

    viewController.hidesBottomBarWhenPushed = YES;

    viewController.navigationItem.leftBarButtonItem = [viewController preferredBackItem];

    [super pushViewController:viewController animated:animated];
}

@end
